package com.demo.dao_admin;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import com.demo.entity.Article;

@Repository("adminArticleDAO")
public interface ArticleDAO extends JpaRepository<Article, Integer>, 
				JpaSpecificationExecutor<Article>{
	
	@Modifying
	@Query("update Article set isShow=:isShow where id=:id")
	public int isShow(Integer id, String isShow);

}
